package lab02.Test13;

public class School extends ComputerAverage {

    double sum = 0;
    double n = 0;

    @Override
    double average(double[] scores) {

        for (int i = 0; i < scores.length; i++) {
            sum += scores[i];
        }
        n = sum / scores.length;
        return n;
    }

    @Override
    public String toString() {
        return n+"";
    }

}
